$(function(){
	var thisNum;
	$('.btn-Box').click(function(){
		thisNum = $(this).index();
		$('.EjectCont').removeClass('active');
		$('.EjectCont').eq(thisNum).addClass('active');
		$('.Eject').show();
	})
	$('.Eject').click(function(){
		$('.Eject').hide();
	})
	$('.Eject .gotoMore').click(function(e){
		e.stopPropagation();
	})

	// 按钮随机部分
	var randomArr = [0,1,2,3];
	var randomRes = [];
	for(var i = 0; i < 4; i ++){
		var random = Math.floor(Math.random()*randomArr.length);
		randomRes.push(randomArr[random]);
		// 添加随机样式
		$('.content-btn .btn-Box').eq(i).css({'-webkit-animation': 'eject .3s ' + (0.6+randomRes[i]*0.3) + 's','animation': 'eject .3s ' + (0.6+randomRes[i]*0.3) + 's','-webkit-animation-fill-mode':'forwards','animation-fill-mode':'forwards'});
		randomArr.splice(random, 1);
	}

})